import requests

url = r'https://cloud.connectiot.ai/connect-iot/access/community/user/query'

headers = {
  "accept": "application/json, text/plain, */*",
  "accept-encoding": "gzip, deflate, br, zstd",
  "accept-language": "en",
  "cache-control": "no-cache",
  "connection": "keep-alive",
  "content-length": "99",
  "content-type": "application/json",
  "cookie": "USER_Id=54f1e4c713f00aa5e3ce319e79525ac2; access_token=acde0729690b04f5eac98c6cc968166f; header_building_value=1754083619283746816; header_building_label=Sandbox%20Properties%20600%20Apartment; header_left_menu=[...] ; header_service=1804131255011422208; project_active_value=access",
  "host": "cloud.connectiot.ai",
  "origin": "https://cloud.connectiot.ai",
  "pragma": "no-cache",
  "referer": "https://cloud.connectiot.ai/",
  "sec-ch-ua": "\"Not;A=Brand\";v=\"99\", \"Google Chrome\";v=\"139\", \"Chromium\";v=\"139\"",
  "sec-ch-ua-mobile": "?0",
  "sec-ch-ua-platform": "\"Windows\"",
  "sec-fetch-dest": "empty",
  "sec-fetch-mode": "cors",
  "sec-fetch-site": "same-origin",
  "source": "Web",
  "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36",
  "x-access-token": "acde0729690b04f5eac98c6cc968166f"
}

data = {
    "pageIndex": 0,
    "pageSize": 100,
    "keyword": "null",
    "asc": "",
    "desc": "",
    "propertyId": "1754083619283746816"
}

post = requests.post(url=url, json=data, headers=headers)
print(post.text)

